xen: arm: Warn if timer interrupts are not level triggered
authorIan Campbell <ian.campbell@citrix.com>
Thu, 19 Feb 2015 15:24:03 +0000 (15:24 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Feb 2015 13:45:49 +0000 (13:45 +0000)
commit61d6a849fd220663462b15990482d1d4b0d3f73b
treeafa794ed33f6fb1464833389ecfa61e221833e47
parent7eb6564d2339c7c1c94b74a8228f34a8b4d6444f
xen: arm: Warn if timer interrupts are not level triggered

Edge trigger arch timer interrupts really don't make much sense, so if
we discover we are booting on such a system issue a warning.

So far this has only been seen on the fast model emulators which have
both an incorrect DT description of the interrupt and a writeable
ICFGR allowing us to program the incorrect configuration. Other
platforms have incorrect DT descriptions (warned about by previous
patch) but the corresponding ICFGR isn't actually writeable so the
eventual configuration is level as desired.

I did consider overriding the incorrect DT on such systems but since
so far it has only been observed on emulators and we have code in
place to deal with edge triggering here I think warning is sufficient
for now.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
[ ijc -- s/contoller/controller twice ]
xen/arch/arm/time.c